package com.gc.dgmodel.command;

/**
 * 抽象的Command类 命令角色
 * <pre>
 * Modify Information:
 * Author       Date          Description
 * ============ ============= ============================
 * liangpanpan   2022/1/14       create this file
 * </pre>
 */
public abstract class Command {

    //定义一个子类的全局共享变量
    protected final Receiver receiver;

    //实现类必须定义一个接收者
    public Command(Receiver _receiver) {
        this.receiver = _receiver;
    }


    //每个命令类都必须有一个执行命令的方法
    public abstract void execute();
}
